//
//  THPlayerController.h
//  AVFoundationDemo
//
//  Created by rubick on 2019/1/17.
//  Copyright © 2019 LG. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol THPlayerControllerDelegate <NSObject>

- (void)playbackBegan;
- (void)playbackStopped;

@end

@interface THPlayerController : NSObject

@property (weak, nonatomic) id<THPlayerControllerDelegate> delegate;
@property (nonatomic, readonly, getter=isPlaying) BOOL playing;
- (void)play;
- (void)stop;

- (void)adjustRate:(float)rate;
- (void)adjustPan:(float)pan forPlayerAtIndex:(NSUInteger)index;
- (void)adjustVolume:(float)volume forPlayerAtIndex:(NSUInteger)index;

@end

NS_ASSUME_NONNULL_END
